package com.itany.book.service;

import com.github.pagehelper.PageInfo;
import com.itany.book.pojo.Permission;
import com.itany.book.pojo.VOPermission;

import java.util.List;

/**
 * Author:yaozhiyuan0117@163.com
 * Time:2019/12/26 16:01
 * Describe:
 * version:1.0
 */
public interface PermissionService {


    PageInfo<Permission> findAll(Integer page, Integer rows, String name, String parentName);

    Permission findById(Integer id);

    List<Permission> findAllParents();

    List<VOPermission> findTree();

    List<Permission> findMenuById(Integer id);

    void modifyPermission(Permission p);
}
